package com.teng.smartdrawer;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

public class AboutActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        ImageView exit_window = (ImageView) findViewById(R.id.exit_window);
        exit_window.setOnClickListener(this);

        TextView version_up = (TextView) findViewById(R.id.version_up);
        version_up.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){

            case R.id.exit_window:
                finish();
                break;

            case R.id.version_up:
                Toast.makeText(this , "已是最新版本" , Toast.LENGTH_SHORT).show();
                break;

        }
    }
}
